3.60 \(\int \frac{a+b \sin (c+d x^3)}{x^4} \, dx\)

Optimal. Leaf size=53 \[ -\frac{a}{3 x^3}+\frac{1}{3} b d \cos (c) \text{CosIntegral}\left (d x^3\right )-\frac{1}{3} b d \sin (c) \text{Si}\left (d x^3\right )-\frac{b \sin \left (c+d x^3\right )}{3 x^3} \]

[Out]

-a/(3*x^3) + (b*d*Cos[c]*CosIntegral[d*x^3])/3 - (b*Sin[c + d*x^3])/(3*x^3) - (b*d*Sin[c]*SinIntegral[d*x^3])/
3

________________________________________________________________________________________

Rubi [A]  time = 0.101523, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {14, 3379, 3297, 3303, 3299, 3302} \[ -\frac{a}{3 x^3}+\frac{1}{3} b d \cos (c) \text{CosIntegral}\left (d x^3\right )-\frac{1}{3} b d \sin (c) \text{Si}\left (d x^3\right )-\frac{b \sin \left (c+d x^3\right )}{3 x^3} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Sin[c + d*x^3])/x^4,x]

[Out]

-a/(3*x^3) + (b*d*Cos[c]*CosIntegral[d*x^3])/3 - (b*Sin[c + d*x^3])/(3*x^3) - (b*d*Sin[c]*SinIntegral[d*x^3])/
3

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 3379

Int[(x_)^(m_.)*((a_.) + (b_.)*Sin[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Sin[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Simpl
ify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rule 3297

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[((c + d*x)^(m + 1)*Sin[e + f*x])/(d*(
m + 1)), x] - Dist[f/(d*(m + 1)), Int[(c + d*x)^(m + 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && LtQ[
m, -1]

Rule 3303

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3299

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
 e, f}, x] && EqQ[d*e - c*f, 0]

Rule 3302

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]

Rubi steps

\begin{align*} \int \frac{a+b \sin \left (c+d x^3\right )}{x^4} \, dx &=\int \left (\frac{a}{x^4}+\frac{b \sin \left (c+d x^3\right )}{x^4}\right ) \, dx\\ &=-\frac{a}{3 x^3}+b \int \frac{\sin \left (c+d x^3\right )}{x^4} \, dx\\ &=-\frac{a}{3 x^3}+\frac{1}{3} b \operatorname{Subst}\left (\int \frac{\sin (c+d x)}{x^2} \, dx,x,x^3\right )\\ &=-\frac{a}{3 x^3}-\frac{b \sin \left (c+d x^3\right )}{3 x^3}+\frac{1}{3} (b d) \operatorname{Subst}\left (\int \frac{\cos (c+d x)}{x} \, dx,x,x^3\right )\\ &=-\frac{a}{3 x^3}-\frac{b \sin \left (c+d x^3\right )}{3 x^3}+\frac{1}{3} (b d \cos (c)) \operatorname{Subst}\left (\int \frac{\cos (d x)}{x} \, dx,x,x^3\right )-\frac{1}{3} (b d \sin (c)) \operatorname{Subst}\left (\int \frac{\sin (d x)}{x} \, dx,x,x^3\right )\\ &=-\frac{a}{3 x^3}+\frac{1}{3} b d \cos (c) \text{Ci}\left (d x^3\right )-\frac{b \sin \left (c+d x^3\right )}{3 x^3}-\frac{1}{3} b d \sin (c) \text{Si}\left (d x^3\right )\\ \end{align*}

Mathematica [A]  time = 0.0866847, size = 48, normalized size = 0.91 \[ -\frac{a-b d x^3 \cos (c) \text{CosIntegral}\left (d x^3\right )+b d x^3 \sin (c) \text{Si}\left (d x^3\right )+b \sin \left (c+d x^3\right )}{3 x^3} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sin[c + d*x^3])/x^4,x]

[Out]

-(a - b*d*x^3*Cos[c]*CosIntegral[d*x^3] + b*Sin[c + d*x^3] + b*d*x^3*Sin[c]*SinIntegral[d*x^3])/(3*x^3)

________________________________________________________________________________________

Maple [F]  time = 0.072, size = 0, normalized size = 0. \begin{align*} \int{\frac{a+b\sin \left ( d{x}^{3}+c \right ) }{{x}^{4}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sin(d*x^3+c))/x^4,x)

[Out]

int((a+b*sin(d*x^3+c))/x^4,x)

________________________________________________________________________________________

Maxima [C]  time = 1.13674, size = 77, normalized size = 1.45 \begin{align*} \frac{1}{6} \,{\left ({\left (\Gamma \left (-1, i \, d x^{3}\right ) + \Gamma \left (-1, -i \, d x^{3}\right )\right )} \cos \left (c\right ) -{\left (i \, \Gamma \left (-1, i \, d x^{3}\right ) - i \, \Gamma \left (-1, -i \, d x^{3}\right )\right )} \sin \left (c\right )\right )} b d - \frac{a}{3 \, x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x^3+c))/x^4,x, algorithm="maxima")

[Out]

1/6*((gamma(-1, I*d*x^3) + gamma(-1, -I*d*x^3))*cos(c) - (I*gamma(-1, I*d*x^3) - I*gamma(-1, -I*d*x^3))*sin(c)
)*b*d - 1/3*a/x^3

________________________________________________________________________________________

Fricas [A]  time = 1.70861, size = 197, normalized size = 3.72 \begin{align*} -\frac{2 \, b d x^{3} \sin \left (c\right ) \operatorname{Si}\left (d x^{3}\right ) -{\left (b d x^{3} \operatorname{Ci}\left (d x^{3}\right ) + b d x^{3} \operatorname{Ci}\left (-d x^{3}\right )\right )} \cos \left (c\right ) + 2 \, b \sin \left (d x^{3} + c\right ) + 2 \, a}{6 \, x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x^3+c))/x^4,x, algorithm="fricas")

[Out]

-1/6*(2*b*d*x^3*sin(c)*sin_integral(d*x^3) - (b*d*x^3*cos_integral(d*x^3) + b*d*x^3*cos_integral(-d*x^3))*cos(
c) + 2*b*sin(d*x^3 + c) + 2*a)/x^3

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \sin{\left (c + d x^{3} \right )}}{x^{4}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x**3+c))/x**4,x)

[Out]

Integral((a + b*sin(c + d*x**3))/x**4, x)

________________________________________________________________________________________

Giac [B]  time = 1.11348, size = 134, normalized size = 2.53 \begin{align*} \frac{{\left (d x^{3} + c\right )} b d^{2} \cos \left (c\right ) \operatorname{Ci}\left (d x^{3}\right ) - b c d^{2} \cos \left (c\right ) \operatorname{Ci}\left (d x^{3}\right ) -{\left (d x^{3} + c\right )} b d^{2} \sin \left (c\right ) \operatorname{Si}\left (d x^{3}\right ) + b c d^{2} \sin \left (c\right ) \operatorname{Si}\left (d x^{3}\right ) - b d^{2} \sin \left (d x^{3} + c\right ) - a d^{2}}{3 \, d^{2} x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x^3+c))/x^4,x, algorithm="giac")

[Out]

1/3*((d*x^3 + c)*b*d^2*cos(c)*cos_integral(d*x^3) - b*c*d^2*cos(c)*cos_integral(d*x^3) - (d*x^3 + c)*b*d^2*sin
(c)*sin_integral(d*x^3) + b*c*d^2*sin(c)*sin_integral(d*x^3) - b*d^2*sin(d*x^3 + c) - a*d^2)/(d^2*x^3)